const mongoose = require('./db');

const Schema = mongoose.Schema;
const oilSchema = new Schema({
    todayValue: String,
    yesterdayValue: String,
    currentValue: { type: String, required: true },
    highest: String,
    lowest: String,
    bidPrice: String,
    AuctionPrice: String,
    tradeNum: String,
    tradeTotal: String,
    oneShareBuy: String,
    oneShareBuyPrice: String,
    twoShareBuy: String,
    twoShareBuyPrice: String,
    threeShareBuy: String,
    threeShareBuyPrice: String,
    fourShareBuy: String,
    fourShareBuyPrice: String,
    fiveShareBuy: String,
    fiveShareBuyPrice: String,
    oneShareSales: String,
    oneShareSalesPrice: String,
    twoShareSales: String,
    twoShareSalesPrice: String,
    threeShareSales: String,
    threeShareSalesPrice: String,
    fourShareSales: String,
    fourShareSalesPrice: String,
    fiveShareSales: String,
    fiveShareSalesPrice: String,
    date: String,
    time: String,
});

module.exports = mongoose.model('Oil_collection', oilSchema);